package com.icore.common;

public class LogUtils {
	public static void printOutToConsole(String s) {
		int length = s.length();
		int offset = 3000;
		if (length > offset) {// 解决报文过长，打印不全的问题！
			int n = 0;
			for (int i = 0; i < length; i += offset) {
				n += offset;
				if (n > length)
					n = length;
				System.out.println("ICore = " + s.substring(i, n));
			}
		} else {
			System.out.println("ICore = " + s);
		}
	}
}
